home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / whati~gz.zoo / whatis.h < prev    next >
C/C++ Source or Header  |  1992-09-13  |  1KB  |  54 lines

  1. /*
  2.  *    whatis.h
  3.  */
  4.  
  5. static char *rcsid_whatis_h = "$Id: whatis.h,v 2.0 1992/09/13 05:02:44 rosenkra Exp $";
  6. /*
  7.  * $Log: whatis.h,v $
  8.  * Revision 2.0  1992/09/13  05:02:44  rosenkra
  9.  * total rewrite. this if first rev of this file.
  10.  *
  11.  *
  12.  */
  13.  
  14. #ifdef CHECK_MAGIC
  15. #define MAGIC        "WHATIS/ST"    /* file's magic */
  16. #define MAGIC_CHECK_LEN    9        /* how much of magic has to match? */
  17.                     /* rest is comment. this MAGIC is */
  18.                     /* for whatis._?_ files */
  19. #endif
  20.  
  21. #define MANPATH        "d:\\usr\\man\0\0<-----------patch space------------->"
  22.                     /* db is $MANPATH/whatis._?_ */
  23. #define WHATIS        "whatis"    /* db name (root) */
  24. #define WHATISIN    "whatisin"    /* list of sections */
  25.  
  26. #define SECTIONS    "0123456789lno\0\0<----------patch space------------->"
  27.                     /* list of sections */
  28.  
  29. #define SLASH        "\\"        /* use "/" for unix, UNIXMODE */
  30.  
  31. #define REC_SIZE    1024        /* max line length in database */
  32.  
  33. #define MAX_ALIAS    10        /* max number of aliases, */
  34. #define MAX_XREF    50        /* cross refs, and */
  35. #define MAX_KEYW    50        /* keywords */
  36.  
  37.  
  38. /*
  39.  *    record structure (after reading from file)
  40.  */
  41. struct rec
  42. {
  43.     char   *name;
  44.     char   *alias[MAX_ALIAS];
  45.     char   *section;
  46.     char   *subsect;
  47.     char   *desc;
  48.     char   *xref[MAX_XREF];
  49.     char   *keyw[MAX_KEYW];
  50. };
  51.  
  52.  
  53.  
  54.